<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="util.*" %>
<%
if(session.getAttribute(Globals.loginInfo) == null ){
	response.sendRedirect("index.jsp");
}
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>123</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="css/member/header.css" rel="stylesheet" type="text/css" />
<link href="css/member/menu.css" rel="stylesheet" type="text/css" />
<link href="css/member/conter.css" rel="stylesheet" type="text/css" />
<link href="css/member/reset-fonts-grids.css" rel="stylesheet" type="text/css" />
<script src="js/jquery/jquery.js"></script>
<script src="js/jquery/jquery.form.js"></script>
<script src="js/jquery/jquery.validate.js"></script>
<script src="js/jquery/jquery.cookie.js"></script>
<script type="text/javascript">
//html style hover
$(document).ready(function(){
	$(".tabmenu").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");})
	$(".tabmenu").hover(function(){$(this).next().css("display","block");},function(){$(this).next().css("display","none");});
	$(".downmenu").hover(function(){$(this).css("display","block");},function(){$(this).css("display","none");})
	$(".nav-bg-1").hover(function(){$(this).addClass("bianse");},function(){$(this).removeClass("bianse");})
	// Text Field Style
	$('input[type=text],textarea,input[type=password]').click(function(){
		$(this).addClass('fct-input-1').blur(function (){ $(this).removeClass('fct-input-1')} );	
	});
	$('input[type=radio],input[type=checkbox]').addClass("radio");
	$(".buttom-comm").hover( function(){$(this).removeClass("buttom-comm").addClass("buttom-comm-se")},function(){$(this).removeClass("buttom-comm-se").addClass("buttom-comm")});
	$(".buttom-comm-1").hover( function(){$(this).removeClass("buttom-comm-1").addClass("buttom-comm-1-se")},function(){$(this).removeClass("buttom-comm-1-se").addClass("buttom-comm-1")});
	$(".span-button").hover( function(){$(this).removeClass("span-button").addClass("span-button-se")},function(){$(this).removeClass("span-button-se").addClass("span-button")})
});
//change language
function changeLang(langTypeValue){
	$.cookie("cdb_commonlangType", langTypeValue);
	window.location.reload();
}
</script>
</head>
<body>
<div id="doc2" class="yui-t1">
	<div id="hd">
		<div class="header">
    		<h1 class="logo"><a href="http://www.shopncdemo.net"><img src="images/member/logo.gif" /></a></h1>
    			<jsp:include page="../jsp/member/top.jsp"></jsp:include>
    		<div class="clear-1"></div>
    		<div class="navpart">
      			<div class="sideleft"></div>
      			<div class="middle">
        			<ul class="menu">
        				<li ><a href="show!toOwnMain.do">我是买家</a></li><li class='current'><a href="product!toMyProduct.do?action=list&optionId=sold">我是卖家</a></li><li ><a href="user!toOwmMember.do">我的账号</a></li><li ><a href="own_shop.php?action=modi">我的店铺</a></li>        			
        				</ul>
        			<div class="search">
          				<form action="../home/product.php" method="get">
            				<input type="text" name="keyword" class="textinput" value="" />
            				<input type="submit" value="" title="搜索" class="btn"/>
          				</form>
          				<span><a href="home/product.php?action=search">高级搜索</a></span>
					</div>
      				</div>
      				<div class="sideright"></div>
    			</div>
  		</div>
		<div class="clear-3"></div>
	</div>
	<div id="bd">
		<div class="yui-b">
			<div class="yui-g">
				<div id="my_menu" class="sdmenu">
					<ul><span>我是卖家</span><li><a href='product!toOwnProduct.do?action=add'>我要卖</a></li><li><a href='product!toMyProduct.do?action=list&optionId=sold' >已卖出的宝贝</a></li><li>${param.optionId=='sell'?'<a href=\'product!toMyProduct.do?action=list&optionId=sell\' class=\'current\'>出售中的宝贝</a></li><li><a href=\'product!toMyProduct.do?action=list&optionId=listinstock\'>仓库里的宝贝</a></li><li>':'<a href=\'product!toMyProduct.do?action=list&optionId=sell\' >出售中的宝贝</a></li><li><a href=\'product!toMyProduct.do?action=list&optionId=listinstock\' class=\'current\'>仓库里的宝贝</a></li><li>'}<a href='own_productmessage.php?action=sale'>买家留言/回复</a></li><li><a href='own_product_batch.php'>商品导入导出</a></li><li><a href='own_member.php?action=personal_certify'>个人实名认证</a></li><li><a href='own_shop.php?action=entity_check'>实体店铺认证</a></li><li><a href='own_payment.php'>设置支付方式</a></li></ul><ul><span>卖家缴费管理</span><li><a href='own_shop_pay.php?action=pay'>缴费充值</a></li><li><a href='own_shop_pay.php?action=detail_list'>缴费明细</a></li></ul><ul><span>卖家统计</span><li><a href='own_statics.php?action=member'>客户统计</a></li><li><a href='own_statics.php?action=order'>订单统计</a></li><li><a href='own_statics.php?action=product'>商品统计</a></li></ul><ul><span>物流</span><li><a href='own_postage.php?action=add'>新增模板</a></li><li><a href='own_postage.php?action=list'>运费模板</a></li></ul>				</div>
			</div>
		</div>
		<script src="js/list_choose.js"></script>
<script type="text/javascript">
$().ready(function() {
	$('#icon_close_search_box').click(
		function(){ $('#filter').slideUp('slow',function(){$('#showcontr').slideDown('fast')})}
	);
	$('#showcontr').click(
		function(){ $('#showcontr').slideUp('fast',function(){$('#filter').slideDown('slow')})}
	);
	$(".tr_dotted").hover(function(){$(this).addClass("over")},function(){$(this).removeClass("over")});
	$('#offsale').click(
		function(){
			$('#form_product').attr("action", "product!toEditorProduct.do?action=update_state");
			$('#form_product').submit();
		}
	)
	$('#recommended').click(
		function(){
			$('#form_product').attr("action", "product!toEditorProduct.do?action=recommended");
			$('#form_product').submit();
		}
	)
	$('#cancel_recommended').click(
		function(){
			$('#form_product').attr("action", "own_product_list.php?action=cancel_recommended");
			$('#form_product').submit();
		}
	)
});
</script>
<div id="yui-main">
	<div class="yui-b">
		<div class="yui-g">
			<div class="y-middle">
				<div class="io-1"><p>${param.optionId=='sell'?'出售中的宝贝':'仓库里的宝贝'}</p>
				</div>
				<div class="sos">
					<form action="product!toMyProduct.do?action=list&optionId=customFind" method="post"  name="search_form">
						<ul>
							<li class="depot-search">查询</li>
							<li class="zi-w">交易类型:</li>
							<li class="zi-w-80">
								<select name="sellType">
									<option value="" selected="selected">所有</option>
									<option value="1" >一口价</option>
									<option value="0" >拍卖</option>
									<option value="2" >团购</option>
								</select>
							</li>
							<li class="zi-w">宝贝类型:</li>
							<li class="zi-w-80">
								<select name="pType">
									<option value="" selected="selected">所有</option>
									<option value="0" >全新</option>
									<option value="1" >二手</option>
									<option value="2" >闲置</option>
								</select>
							</li>				
							<li class="zi-w">关键字:</li>
							<li class="zi-w-80"><input class="input-100" name="keyword" type="text" value="" /></li>						
							<li class="aan-1"><span class="buttom-comm-1"><input class="input-a" name="" value="查询" type="submit" /></span></li>
						</ul>
					</form>
				</div>
				<div class="clear-9"></div>
				<div class="bg-sj bg-wu"></div>
				<div class="clear-9"></div>
				<div class="nav">
					<ul>
						<li class="nav-bg"><b></b><span><p>${param.optionId=='sell'?'出售中的宝贝':'仓库里的宝贝'}</p></span></li>
					</ul>
				</div>
				<div class="z-mai-unite">
					<table class="unite-table-1"  border="0" cellspacing="0" cellpadding="0" >
						<tr class="tr-un-bg-2">
							<td class="td-bg-3"><a href="javascript:;" onclick="selectall();">全选<!-- 全选 --></a>/<a href="javascript:;" onclick="unselectall();">反选<!-- 反选 --></a></td>
							<td class="td-bg-1">名称</td>
							<td class="td-bg-3">数量</td>
							<td class="td-bg-3">创建时间</td>
							<td class="td-bg-3">开始时间</td>
							<td class="td-bg-3">结束时间</td>
							<td class="td-bg-7">编辑</td>
						</tr>
						<tr class="tr-un-space">
							<td colspan="7"></td>
						</tr>
						
						<s:if test="ls.size()<1">
						
						<tr class="tr-not">
							<td colspan="7">暂无相关内容！</td>
						</tr>
						</table>
				
						</s:if>
						
						<s:else>
						
						<form name="form_product" id="form_product" action="product!toEditorProduct.do?action=del" method="post" onsubmit="return checkForm('确定要删除吗？','请选择需要删除的信息！');">
							
						 <s:iterator id="ls" value="#attr.ls">
        
						<tr class="tr-un-conter-4">
							<td>
								<input class="checbox" name="chboxPid" type="checkbox" value="<s:property value="id" />" />
							</td>
							<td class="tr-img">
									<span class="depott-span-1">
										<a href="home/product.php?action=view&pid=0b218927455dac2f7c831b076860edb3" target="_blank">
											<img src="templates/member/images/noimgs.gif" alt="<s:property value="name" />" title="<s:property value="name" />"/>
										</a>										
									</span>
									<span class="depott-span-3">
										<p><a href="product!toProductView.do?action=view&pid=<s:property value="id" />" target="_blank"><s:property value="name" /></a></p>
										<p class="depott-p-2">(一口价)</p>
									</span>								
							</td>
							<td class="td-blod">
								<s:property value="count" />
							</td>
							<td>
								<s:property value="publishDate" />	
							</td>
							<td>
								2010-04-27
							</td>
							<td>
								<s:property value="overDate" />							
							</td>
							<td>
								<a href="product!toEditorProduct.do?action=modi&pid=<s:property value="id" />">编辑</a>
							</td>
						</tr>
						
						</s:iterator>
			</table>
						<div class="handle">
							<ul class="depot-ul depot-ul-li-2">
								<!-- 全选/反选 -->
								<li class="depot-li-te"><a href="javascript:;" onclick="selectall();">全选</a>/<a href="javascript:;" onclick="unselectall();">反选</a></li>							
								<s:if test="#attr.optionId=='sell'">
								<li><span class="span-button"><input name="recommended" id="recommended" value="橱窗推荐" type="button" /></span></li>
								<li><span class="span-button"><input name="cancel_recommended" id="cancel_recommended" value="取消推荐" type="button" /></span></li>
								</s:if>
								<li><span class="span-button"><input id="delete"  value="删除"  type="submit" /></span></li>
								<li><span class="span-button"><input name="offsale" id="offsale" value="${optionId=='sell'?'下架':'上架'}" type="button" /></span></li>
								<input type="hidden" name="state" id="state" value="0">
							</ul>
						</div>
									<!-- </div>  -->
									<div class="page">
						<div class="pd-ck-right">
							<div class="pages">1/1</div>
							<div class='button'><a style="cursor: pointer;"><img src="images/member/btn_previouspage.gif" /></a></div>
							<ul class="pagetab">
								<li class='current'><a style=" text-decoration: underline;"  href="/member/own_product_list.php?action=list&curpage=1">1</a></li>
							</ul>
							<div class='button'><a style="cursor: pointer;"><img src="images/member/btn_nextpage.gif" /></a></div>
							<div class="pageform"><span>转到</span><select name="PB_Page_Sel" onchange="location.href='/member/own_product_list.php?action=list&curpage=' + this.value"><option value="1" selected>&nbsp;1&nbsp;/&nbsp;1&nbsp;</option></select></div>						
							</div>	
					</div>
								</form>
								
					</s:else>
					</div>
			</div>
		</div>
	</div>
</div>	</div>
	<div id="ft">
	<jsp:include page="../jsp/bottom.jsp"></jsp:include>
	</div>
</body>
</html>